#include <stdio.h>
#include <math.h>

#define PI 3.141592654

int main() {
	float num1 = 0.0f;
	double num2 = 0.0;
	scanf("%f", &num1);
	scanf("%lf", &num2);
	printf("%f %e\n", num1, num1);
	printf("%lf %e\n", num2, num2);

	return 0;
}
